package com.ctshk.rpc.insurance.req.tp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(value = "保险")
public class AcceptUnderReq implements Serializable {

    @Valid
    @NotNull(message = "投保人不能为空")
    @ApiModelProperty(value = "投保人")
    private ApplicantInfo appliGuRelatedPartyDto;

    @NotEmpty(message = "被保人列表不能为空")
    @ApiModelProperty(value = "被保人列表")
    private List<InsuredInfo> guItemAcciListDtoList;

    @NotNull(message = "保險起期不能为空")
    @ApiModelProperty(value = "保險起期,格式yyyy-MM-dd")
    private String startDate;
    @NotNull(message = "保險止期不能为空")
    @ApiModelProperty(value = "保險止期,格式yyyy-MM-dd")
    private String endDate;
    @NotNull(message = "出發地不能为空")
    @ApiModelProperty(value = "出發地eg：【香港 HONG KONG】")
    private String startPlace;
    @NotNull(message = "目的地不能为空")
    @ApiModelProperty(value = "目的地eg：【深圳 SHENZHEN】")
    private String endPlace;
}
